import Layout from '../page/Index'
const defaultRoutes = [
  {
    path: '/',
    component: Layout,
    name: 'Home',
    redirect: '/index',
    children: [
      {
        path: 'index',
        name: 'Index',
        meta: {
          title: '首页'
        },
        component: () => import('../views/Home')
      }
    ]
  },
  {
    path: '/login',
    name: 'Login',
    meta: {
      title: '登录'
    },
    component: () => import('../page/Login')
  },
  {
    path: '/404',
    name: '404',
    meta: {
      title: '404'
    },
    component: () => import('../page/404')
  }
  // { path: '*', redirect: '/404' }
]
export default defaultRoutes
